/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { RListVisitVo } from '../models/RListVisitVo';
import type { RString } from '../models/RString';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class VisitService {

    /**
     * @param requestBody 
     * @returns RString OK
     * @throws ApiError
     */
    public static deleteSubScribe(
requestBody: Array<number>,
): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'PUT',
            url: '/visit/delete',
            body: requestBody,
            mediaType: 'application/json',
        });
    }

    /**
     * @returns RListVisitVo OK
     * @throws ApiError
     */
    public static queryAll1(): CancelablePromise<RListVisitVo> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/visit/list',
        });
    }

    /**
     * @param articleItemId 
     * @returns RString OK
     * @throws ApiError
     */
    public static addVisited(
articleItemId: number,
): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/visit/addVisited',
            query: {
                'articleItemId': articleItemId,
            },
        });
    }

    /**
     * @param articleId 
     * @returns RString OK
     * @throws ApiError
     */
    public static add1(
articleId: number,
): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/visit/addSubscribe',
            query: {
                'articleId': articleId,
            },
        });
    }

}
